/**
 * Author: w景洋.
 * Time: 2016/7/21 0021
 */
angular.module('filter.order', [])
    //过滤器Filter
    .service('OrderFilterService', ['$resource', function ($resource) {
        this.tranZipcode = function (input) {
            return input;
        }

    }])
    .filter('tranzipcode', ['OrderFilterService', function (OrderFilterService) {
        return function (input) {
            return OrderFilterService.tranZipcode(input);
        };
    }])
    .filter('byMessageFilter',[function(){
        return function(Message) {
            if(Message=='' || !Message){
                Message='无';
            }
            return Message;
        }
    }])
    .filter('payTypeFilter',[function(){
        return function(payType) {
            if(payType==0){
                payType='普通订单';
            }
            else if(payType==5){
                payType='到店自提订单';
            }
            else if(payType==6){
                payType='到店订单';
            }
            return payType;
        }
    }])
;